package cn.qy.java.base.ch09enum;

/**
 * 枚举的使用
 *
 * @author acc8226
 */
public class Main {

    public static void main(String[] args) {
        // valueOf
        SeasonEnum seasonEnum = Enum.valueOf(SeasonEnum.class, "spring");
        System.out.println(seasonEnum);
        System.out.println(SeasonEnum.valueOf("autumn"));
    }

}
